package www.woniuxy.com.class112.dao;

import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import www.woniuxy.com.class112.entity.UserInfos;
import www.woniuxy.com.class112.entity.UserInfosExample;

public interface UserInfosMapper {
    long countByExample(UserInfosExample example);

    int deleteByExample(UserInfosExample example);

    int deleteByPrimaryKey(Long id);

    int insert(UserInfos record);

    int insertSelective(UserInfos record);

    List<UserInfos> selectByExample(UserInfosExample example);

    UserInfos selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") UserInfos record, @Param("example") UserInfosExample example);

    int updateByExample(@Param("record") UserInfos record, @Param("example") UserInfosExample example);

    int updateByPrimaryKeySelective(UserInfos record);

    int updateByPrimaryKey(UserInfos record);
    @Select("select user_name from user_infos where id=#{id}")
    String userName(Long id);
    @Select("select phone from user_infos where id=#{id}")
    String phone(Long id);
}